package com.sdy.hospitalguard.biz.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.hospitalguard.biz.dto.VisitAppointmentDTO;
import com.sdy.hospitalguard.biz.dto.VisitManageDTO;
import com.sdy.hospitalguard.biz.model.VisitAppointment;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 探视预约表 Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2020-05-08
 */
public interface VisitAppointmentMapper extends BaseMapper<VisitAppointment> {
    List<VisitAppointmentDTO> patientTodayVisit(@Param("patientId") Integer patientId, @Param("todayDate") String todayDate);

    IPage<VisitAppointmentDTO> patientAllVisit(Page page, @Param("patientId") Integer patientId);

    IPage<VisitManageDTO> getVisitInformation(Page page,
                                             @Param("message") String message,
                                             @Param("areaId") Integer areaId,
                                             @Param("start") String start,
                                             @Param("end") String end,
                                             @Param("userAreaId") Integer userAreaId);

    List<VisitManageDTO> getVisitInformation(@Param("message") String message,
                                              @Param("areaId") Integer areaId,
                                              @Param("start") String start,
                                              @Param("end") String end,
                                              @Param("userAreaId") Integer userAreaId);

}
